//
//  LoginModel.h
//  VideoExam
//
//  Created by apple on 2020/4/7.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LoginModel : NSObject
@property(nonatomic,assign)BOOL Agree;//同意
@property(nonatomic,strong)NSString * Agreement;//协议
@property(nonatomic,strong)NSString * Privacy;//隐私
@property(nonatomic,assign)BOOL isCodeLogin;//是否是验证码登录
@property(nonatomic,strong)NSString * phone;
@property(nonatomic,strong)NSString * code;
@property(nonatomic,assign)BOOL canClicked;
@property(nonatomic,assign)int time;//验证码秒数倒计时

/// 发送验证码
/// @param phone 手机号
/// @param success success
/// @param errorBlock errorBlock
+(void)getCodePhone:(NSString *)phone Success:(ObjSuccess)success error:(ErrorBlock)errorBlock;

/// 账号密码登录 ，验证码登录
/// @param account account
/// @param code 验证码
/// @param success success
/// @param errorBlock errorBlock
+(void)loginAccount:(NSString *)account  Code:(NSString *)code  Success:(ObjSuccess)success error:(ErrorBlock)errorBlock;

/// RSA 加密
/// @param content 要加密的字符串
+ (NSString *)encryption_content:(NSString *)content;
@end

NS_ASSUME_NONNULL_END
